package svc

import (
	"large-model-platform-backend/internal/config"
	model "large-model-platform-backend/mongo"
)

type ServiceContext struct {
	Config     config.Config
	UserModel  model.UserModel
	LargeModel model.LargeModelModel
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:     c,
		UserModel:  model.NewUserModel(c.Mongo.Uri, c.Mongo.Db, c.Mongo.UserCollection),
		LargeModel: model.NewLargeModelModel(c.Mongo.Uri, c.Mongo.Db, c.Mongo.LargeModelCollection),
	}
}
